import * as ajax from "../../common/ajax";

export const list = () => ajax.pureGet("/student/course/list");

export const deleteItem = studentCourseId =>
  ajax.pureDelete("/student/course/" + studentCourseId);

export function getCourseDetail(courseId) {
  return axios.get(`/api/course/${courseId}`);  // 假设你有一个 API 端点 `/api/course/{courseId}`
}
